<%--
  Created by IntelliJ IDEA.
  User: 86166
  Date: 2024/08/17
  Time: 20:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>融资管理系统</title>
    <meta name="description" content="这是一个 index 页面">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
    <link rel="stylesheet" href="assets/css/amazeui.min.css"/>
    <link rel="stylesheet" href="assets/css/admin.css">
    <link rel="stylesheet" href="assets/css/app.css">
</head>
<body data-type="generalComponents">
<header class="am-topbar am-topbar-inverse admin-header">
    <div class="am-collapse am-topbar-collapse" id="topbar-collapse">
        <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list tpl-header-list">
            <li class="am-dropdown" data-am-dropdown data-am-dropdown-toggle>
                <a class="am-dropdown-toggle tpl-header-list-link" href="javascript:;">
                    <span class="tpl-header-list-user-nick" id="name">    </span><span class="tpl-header-list-user-ico"> <img
                        src="assets/img/user01.png"></span>
                </a>
                <ul class="am-dropdown-content">
                    <li><a href="login.jsp"><span class="am-icon-power-off"></span> 退出</a></li>
                </ul>
            </li>
        </ul>
    </div>
</header>
<div class="tpl-page-container tpl-page-header-fixed">
    <div class="tpl-left-nav tpl-left-nav-hover">
        <div class="tpl-left-nav-list">
            <ul class="tpl-left-nav-menu">
                <li class="tpl-left-nav-item">
                    <a href="javascript:;" class="nav-link tpl-left-nav-link-list active">
                        <i class="am-icon-table"></i>
                        <span>凭证管理</span>
                        <i class="am-icon-angle-right tpl-left-nav-more-ico am-fr am-margin-right tpl-left-nav-more-ico-rotate"></i>
                    </a>
                    <ul class="tpl-left-nav-sub-menu" style="display:block">
                        <li>
                            <a href="finance-list.jsp" class="active">
                                <i class="am-icon-angle-right"></i>
                                <span>融资列表</span>
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="tpl-left-nav-item">
                    <a href="javascript:;" class="nav-link tpl-left-nav-link-list">
                        <i class="am-icon-wpforms"></i>
                        <span>我的凭证</span>
                        <i class="am-icon-angle-right tpl-left-nav-more-ico am-fr am-margin-right"></i>
                    </a>
                    <ul class="tpl-left-nav-sub-menu">
                        <li>
                            <a id="B">
                                <i class="am-icon-angle-right"></i>
                                <span>我的凭证列表</span>
                            </a>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
    <div class="tpl-content-wrapper">
        <div class="tpl-content-page-title">
            融资详情
        </div>
        <ol class="am-breadcrumb">
            <li class="am-active"><a style="color: #999999;">凭证管理</a></li>
            <li class="am-active">融资详情</li>
        </ol>
        <div class="tpl-portlet-components">
            <div class="portlet-title">
                <div class="caption font-green bold">
                    融资信息
                </div>
                <div class="tpl-portlet-input tpl-fz-ml">
                    <div class="portlet-input input-small input-inline">
                        <div class="input-icon right">
                        </div>
                    </div>
                </div>
            </div>
            <div class="tpl-block ">
                <div class="am-g tpl-amazeui-form">
                    <div class="am-u-sm-12 am-u-md-6">
                        <form class="am-form am-form-horizontal">
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label">凭证编号</label>
                                <div class="am-u-sm-9" id="pingzhengbianhao" style="margin-top: 4px;font-size: 16px;">

                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6">
                        <form class="am-form am-form-horizontal">
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label">处理状态</label>
                                <div class="am-u-sm-9" id="chulizhuangtai" style="margin-top: 4px;font-size: 16px;">
                                          <span id="zhuangtaihouzhui"
                                                style="font-size: 12px;color: #999;margin-left: 50px; margin-top: 2px"></span>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6">
                        <form class="am-form am-form-horizontal">
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label">金融机构</label>
                                <div class="am-u-sm-9" id="jinrongjigou" style="margin-top: 4px;font-size: 16px;">

                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6">
                        <form class="am-form am-form-horizontal">
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label">付息方式</label>
                                <div class="am-u-sm-9" id="beizhu" style="margin-top: 4px;font-size: 16px;">

                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6">
                        <form class="am-form am-form-horizontal">
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label">申请日期</label>
                                <div class="am-u-sm-9" id="shenqingriqi" style="margin-top: 4px;font-size: 16px;">

                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6">
                        <form class="am-form am-form-horizontal">
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label">预计到账时间</label>
                                <div class="am-u-sm-9" id="daozhangshijian" style="margin-top: 4px;font-size: 16px;">
                                    <span id="shengyutianshu" style="font-size: 12px;color: #999"></span>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6">
                        <form class="am-form am-form-horizontal">
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label">融资金额</label>
                                <div class="am-u-sm-9" id="rongzijine"
                                     style="font-size: 19px;color: red;font-weight: 500;">

                                </div>
                                <div style="font-size: 12px;color: #999">
                                    <div id="lixi"></div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6">
                        <form class="am-form am-form-horizontal">
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label">预计到账</label>
                                <div id="yujidaozhang" class="am-u-sm-9"
                                     style="font-size: 19px;color: red;font-weight: 500;">

                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div style="text-align: center;margin-top:40px">
                    <a class="am-btn am-btn-default">返 回</a>
                </div>
            </div>
        </div>
    </div>


</div>


<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/amazeui.min.js"></script>
<script src="assets/js/app.js"></script>
<script type="text/javascript" src="assets/js/jquery-1.8.3.js"></script>
<script type="text/javascript">
    var eid = '<%=request.getParameter("eid")%>';
    var no = '<%=request.getParameter("no")%>';
    var name = '<%=request.getParameter("name")%>';
    var indexPage = '<%=request.getParameter("indexPage")%>';
    $(document).ready(function () {
        $("#name").text(name);

        $.get("FMS/queryDetail", {"no": no}, function (data) {
            da = eval("(" + data + ")");
            var no = '<%=request.getParameter("no")%>';
            $.get("FMS/queryDetail", {"no": no}, function (data) {
                // JSON.stringify(data);
                da = eval("(" + data + ")");
                $("<tr>" +
                    "<td>" + da.no + "</td>" +
                    // 添加其他需要的列
                    "</tr>").appendTo("div[id='pingzhengbianhao']");
                $("<tr>" +
                    "<td>" + da.status + "</td>" +
                    // 添加其他需要的列
                    "</tr>").appendTo("div[id='chulizhuangtai']");

                $("<tr>" +
                    "<td>" + da.fin + "</td>" +
                    // 添加其他需要的列
                    "</tr>").appendTo("span[id='zhuangtaihouzhui']");

                $("<tr>" +
                    "<td>" + da.name + "</td>" +
                    // 添加其他需要的列
                    "</tr>").appendTo("div[id='jinrongjigou']");

                $("<tr>" +
                    "<td>" + da.payment_interest_type + "</td>" +
                    // 添加其他需要的列
                    "</tr>").appendTo("div[id='beizhu']");

                $("<tr>" +
                    "<td>" + da.create_time + "</td>" +
                    // 添加其他需要的列
                    "</tr>").appendTo("div[id='shenqingriqi']");

                $("<tr>" +
                    "<td>" + da.receipt_time + "</td>" +
                    // 添加其他需要的列
                    "</tr>").appendTo("div[id='daozhangshijian']");

                $("<tr>" +
                    "<td>" + da.receipt_day + "天" + "</td>" +
                    // 添加其他需要的列
                    "</tr>").appendTo("span[id='shengyutianshu']");

                $("<tr>" +
                    "<td>" + da.amount + "元" + "</td>" +
                    // 添加其他需要的列
                    "</tr>").appendTo("div[id='rongzijine']");
                $("<tr>" +
                    "<td>" + "含融资利息:" + da.interest + "</td>" +
                    // 添加其他需要的列
                    "</tr>").appendTo("div[id='lixi']");
                $("<tr>" +
                    "<td>" + da.receipt_amount + "元" + "</td>" +
                    // 添加其他需要的列
                    "</tr>").appendTo("div[id='yujidaozhang']");
            });
            $("a[class=\"am-btn am-btn-default\"]").click(function () {
                window.location.href = "finance-list.jsp?eid=" + eid+"&name=" + name+"&indexPage="+indexPage;
            });
            $("#B").click(function () {
                window.location.href = "finance-list.jsp?eid=" + eid+"&name=" + name+"&indexPage="+indexPage;
            });

        });
    });
</script>
</body>

</html>
